package cc.telecomdigital.tdstock;

import cc.telecomdigital.tdstock.R;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

/**
 * 
 *   used  as a default action when user click some object (i.e. Button)
 * 
 * @author haibo
 *
 */
public class DefaultClickHandler implements OnClickListener
{
	private Context	_context;

	public DefaultClickHandler(Context context)
	{
		_context = context;
	}

	protected void onDefaultAction()
	{
		Toast.makeText(_context, R.string.under_construction,
				Toast.LENGTH_SHORT).show();
	}

	@Override
	public void onClick(View v)
	{
		onDefaultAction();
	}

}
